<template>
        <a href="#">
            <product-title :importantT='goProduct.importantT'></product-title>
            <img :src="goProduct.imgsrc" alt="">
            <span class="m_title">{{goProduct.title}}</span>
            <span class="m_details">{{goProduct.details}}</span>
            <p class="m_price">
                <span>{{goProduct.nprice}}</span>
                <span>{{goProduct.price}}</span>
            </p>
        </a>
</template>
<script>
import Product_title from './Product_title'
export default{
    components:{
        'product-title' : Product_title
    },
    props:['goProduct']
}  
</script>
<style scoped>
.m_list_hot{
    width: 64px;
    height: 20px;
    font-size: 12px;
    line-height: 20px;
    color: #fff;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translate(-50%);
}
img {
    width: 160px;
    height: 160px;
    display: block;
    margin: 55px auto 20px;
}
.m_title{
    display: block;
    width: 194px;
    font-size: 14px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    margin: 0 20px 3px;
    color: #212121;
}
.m_details{
    display: block;
    width: 230px;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
    margin: 0 auto 12px;
    color: #b0b0b0;
}
.m_price{
   width: 230px;
   text-align: center;
}
.m_price>span:first-child{
    color: #ff6709;
    font-size: 14px;
}
.m_price>span:last-child{
    font-size: 14px;
    text-decoration: line-through;
    color: #b0b0b0;
    margin-left: 5px;
}
</style>

